Skip to content

Commit

Permalink
Clean up tests
Browse files Browse the repository at this point in the history
  • Loading branch information
matoval committed Dec 12, 2024
1 parent 698d32b commit 0f90661
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 3 additions & 0 deletions pkg/types/main_test.go
Original file line number Diff line number Diff line change
@@ -31,6 +31,9 @@ func TestMainInitNodeID(t *testing.T) {
} else if err != nil && err.Error() != testCase.expectedErr {
t.Errorf("expected error to be %s, but got: %s", testCase.expectedErr, err.Error())
}
t.Cleanup(func() {
cfg = NodeCfg{}
})
})
}
}
1 change: 0 additions & 1 deletion pkg/workceptor/command_test.go
Original file line number Diff line number Diff line change
@@ -101,7 +101,6 @@ func TestUnredactedStatus(t *testing.T) {
statusLock := &sync.RWMutex{}
for _, testCase := range restartTestCases {
t.Run(testCase.name, func(t *testing.T) {
t.Parallel()
mockBaseWorkUnit.EXPECT().GetStatusLock().Return(statusLock).Times(2)
mockBaseWorkUnit.EXPECT().GetStatusWithoutExtraData().Return(&workceptor.StatusFileData{})
mockBaseWorkUnit.EXPECT().GetStatusCopy().Return(workceptor.StatusFileData{

0 comments on commit 0f90661

Please sign in to comment.