Skip to content

Commit faed73e

Browse files
committed
update unit tests
1 parent 11cd584 commit faed73e

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

internal/librarian/add_test.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -624,9 +624,7 @@ func TestSyncToStateYAML_Error(t *testing.T) {
624624
},
625625
} {
626626
t.Run(test.name, func(t *testing.T) {
627-
tmpDir := t.TempDir()
628-
t.Chdir(tmpDir)
629-
err := syncToStateYAML(".", test.cfg)
627+
err := syncToStateYAML(t.TempDir(), test.cfg)
630628
if !errors.Is(err, test.wantError) {
631629
t.Errorf("syncToStateYAML(%s): got error %v, want %v", test.name, err, test.wantError)
632630
}

0 commit comments

Comments
 (0)