Skip to content

Commit a58901a

Browse files
changed test logic
1 parent 88aa161 commit a58901a

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

quest_test.go

+7-1
Original file line numberDiff line numberDiff line change
@@ -428,8 +428,14 @@ func TestHotTierGetsLogsAfter(t *testing.T) {
428428
body, err := readJsonBody[StreamHotTier](response.Body)
429429
require.NoErrorf(t, err, "Hot tier response not in correct schema: %s", err)
430430

431+
// get total byte count of ingested logs
432+
size := 0
433+
for _, expectedlog := range logs {
434+
size = size + int(expectedlog.ByteCount)
435+
}
436+
431437
// ascertain that the ingested all the ingested logs are present in hot tier
432-
require.Equalf(t, len(logs), "%d", body.Size, "Total no. of ingested logs is %d but hot tier contains %d logs", len(logs), body.Size)
438+
require.Equalf(t, size, "%d", *body.UsedSize, "Total size of ingested logs is %d GiB but hot tier contains %d GiB", size, body.UsedSize)
433439

434440
disableHotTier(t)
435441
DeleteStream(t, NewGlob.QueryClient, NewGlob.Stream)

0 commit comments

Comments
 (0)