Skip to content

Commit

Permalink
Merge pull request #876 from Icinga/history-test-rebind-log
Browse files Browse the repository at this point in the history
test: Rebind Log Output Query for PostgreSQL
  • Loading branch information
lippserd authored Dec 17, 2024
2 parents 5454c89 + 93be682 commit accf30b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/history_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -435,12 +435,12 @@ func testHistory(t *testing.T, numNodes int) {

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

testConsistency(t, stream)
Expand Down

0 comments on commit accf30b

Please sign in to comment.