Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
k1LoW committed Nov 17, 2024
1 parent 395b1fd commit b4553e5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion operator_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -970,7 +970,7 @@ func TestShard(t *testing.T) {
cmp.AllowUnexported(allow...),
cmpopts.IgnoreUnexported(ignore...),
cmpopts.IgnoreFields(stopw.Span{}, "ID"),
cmpopts.IgnoreFields(operator{}, "id", "concurrency", "mu", "dbg", "needs", "nm"),
cmpopts.IgnoreFields(operator{}, "id", "concurrency", "mu", "dbg", "needs", "nm", "maskRule"),
cmpopts.IgnoreFields(cdpRunner{}, "ctx", "cancel", "opts", "mu", "operatorID"),
cmpopts.IgnoreFields(sshRunner{}, "client", "sess", "stdin", "stdout", "stderr", "operatorID"),
cmpopts.IgnoreFields(grpcRunner{}, "mu", "operatorID"),
Expand Down
2 changes: 1 addition & 1 deletion store.go
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ func (s *store) removeLatestAsMapped() {
if !s.useMap {
panic("removeLatestAsMapped can only be used if useMap = true")
}
latestKey := s.stepMapKeys[len(s.stepMapKeys)-1]
latestKey := s.stepMapKeys[len(s.stepMap)-1]
delete(s.stepMap, latestKey)
}

Expand Down

0 comments on commit b4553e5

Please sign in to comment.