Skip to content

Commit

Permalink
Test fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Romsik788 committed Nov 5, 2024
1 parent 036695a commit ffbf57d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions application/backend/app/containerdb/containerdb_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,15 +65,15 @@ func TestGetLogs(t *testing.T) {
db.Close()

var logs [][]string
logs = GetLogs(false, true, "Test", "TestGetLogsCont", "", 30, vars.Year+"-02-10T12:57:09.230421754Z", false)["logs"].([][]string)
logs = GetLogs(false, true, "Test", "TestGetLogsCont", "", 30, vars.Year+"-02-10T12:57:09.230421754Z", false, nil)["logs"].([][]string)
if len(logs) != 5 {
t.Error("5 logItems must be returned!")
}
if logs[0][0] != vars.Year+"-02-10T12:57:09.230421754Z" {
t.Error("Invalid first logItem datetime: ", logs[0][0])
}

logs = GetLogs(true, false, "Test", "TestGetLogsCont", "", 30, vars.Year+"-02-10T12:51:09.230421754Z", false)["logs"].([][]string)
logs = GetLogs(true, false, "Test", "TestGetLogsCont", "", 30, vars.Year+"-02-10T12:51:09.230421754Z", false, nil)["logs"].([][]string)
if len(logs) != 4 {
t.Error("4 logItems must be returned!")
}
Expand Down

0 comments on commit ffbf57d

Please sign in to comment.