Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
Signed-off-by: 🌲 Harry 🌊 John 🏔 <[email protected]>
  • Loading branch information
harry671003 committed Dec 4, 2023
1 parent 9a89c6d commit 890663d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/compactor/compactor_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -956,7 +956,7 @@ func TestCompactor_ShouldNotCompactBlocksForUsersMarkedForDeletion(t *testing.T)
// Mock the bucket to contain two users, each one with one block.
bucketClient := &bucket.ClientMock{}
bucketClient.MockIter("", []string{"user-1"}, nil)
bucketClient.MockIter("__markers__", []string{"user-1"}, nil)
bucketClient.MockIter("__markers__", []string{"__markers__/user-1/"}, nil)
bucketClient.MockIter("user-1/", []string{"user-1/01DTVP434PA9VFXSW2JKB3392D"}, nil)
bucketClient.MockGet(cortex_tsdb.GetGlobalDeletionMarkPath("user-1"), `{"deletion_time": 1}`, nil)
bucketClient.MockUpload(cortex_tsdb.GetGlobalDeletionMarkPath("user-1"), nil)
Expand Down Expand Up @@ -1945,6 +1945,7 @@ func TestCompactor_ShouldFailCompactionOnTimeout(t *testing.T) {
// Mock the bucket
bucketClient := &bucket.ClientMock{}
bucketClient.MockIter("", []string{}, nil)
bucketClient.MockIter("__markers__", []string{}, nil)

ringStore, closer := consul.NewInMemoryClient(ring.GetCodec(), log.NewNopLogger(), nil)
t.Cleanup(func() { assert.NoError(t, closer.Close()) })
Expand Down

0 comments on commit 890663d

Please sign in to comment.