Skip to content

Commit

Permalink
upd rageywide
Browse files Browse the repository at this point in the history
  • Loading branch information
Satont committed Apr 8, 2023
1 parent fdbe0be commit b5fb1be
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/db/stream_impl_ent_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ func TestStreamEntService_GetLatestByChannelID(t *testing.T) {
assert.Equal(t, newChannel.ID, stream.ChannelID, "Expects channel_id to be equal.")
assert.Equal(t, tt.wantedStreamID, stream.ID, "Expects stream_id to be equal.")
assert.Nil(t, stream.EndedAt, "Expects is_live to be equal.")
assert.Contains(t, stream.Categories[0].Name, "Category", "Expects category to be equal.")
assert.Equal(t, stream.Categories[0].Name, "Category", "Expects category to be equal.")
assert.Contains(t, stream.Titles, "Title", "Expects title to be equal.")
}

Expand Down Expand Up @@ -208,7 +208,7 @@ func TestStreamEntService_GetManyByChannelID(t *testing.T) {

assert.Len(t, streams, 2, "Expects streams length to be equal.")
assert.Equal(t, "321", streams[0].ID, "Expects stream_id to be equal.")
assert.Contains(t, streams[0].Categories, "Category", "Expects category to be equal.")
assert.Equal(t, streams[0].Categories[0].Name, "Category", "Expects category to be equal.")
assert.Equal(t, "123", streams[1].ID, "Expects stream_id to be equal.")

_, err = entClient.Stream.Delete().Exec(ctx)
Expand Down

0 comments on commit b5fb1be

Please sign in to comment.