Skip to content

Commit

Permalink
gc_worker_test: Print error to the failure message when mustGetNone e…
Browse files Browse the repository at this point in the history
…ncounters unexpected error (pingcap#47709)

ref pingcap#47023
  • Loading branch information
MyonKeminta authored and wuhuizuo committed Apr 2, 2024
1 parent 57b49c7 commit 9b58380
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/store/gcworker/gc_worker_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ func (s *mockGCWorkerSuite) mustGetNone(t *testing.T, key string, ts uint64) {
if err != nil {
// unistore gc is based on compaction filter.
// So skip the error check if err == nil.
require.True(t, kv.ErrNotExist.Equal(err))
require.True(t, kv.ErrNotExist.Equal(err), "unexpected error: %+q", err)
}
}

Expand Down

0 comments on commit 9b58380

Please sign in to comment.