Skip to content

Commit accf30b

Browse files
authored
Merge pull request #876 from Icinga/history-test-rebind-log
test: Rebind Log Output Query for PostgreSQL
2 parents 5454c89 + 93be682 commit accf30b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/history_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -435,12 +435,12 @@ func testHistory(t *testing.T, numNodes int) {
435435

436436
assert.Equal(t, expected, got, "downtime history should match expected result")
437437
}, 5*time.Second, 200*time.Millisecond) {
438-
t.Logf("\n%s", utils.MustT(t).String(utils.PrettySelect(db,
438+
t.Logf("\n%s", utils.MustT(t).String(utils.PrettySelect(db, db.Rebind(
439439
"SELECT h.event_time, h.event_type FROM history h"+
440440
" JOIN host ON host.id = h.host_id"+
441441
" LEFT JOIN downtime_history d ON d.downtime_id = h.downtime_history_id"+
442442
" WHERE host.name = ?"+
443-
" ORDER BY h.event_time", hostname)))
443+
" ORDER BY h.event_time"), hostname)))
444444
}
445445

446446
testConsistency(t, stream)

0 commit comments

Comments
 (0)