@@ -574,14 +574,14 @@ func TestWriteLibraryState(t *testing.T) {
574574 },
575575 },
576576 path : os .TempDir (),
577- filename : "example.json" ,
577+ filename : "a-library- example.json" ,
578578 wantFile : "successful-marshaling-and-writing.json" ,
579579 },
580580 {
581581 name : "empty library state" ,
582582 state : & config.LibrarianState {},
583583 path : os .TempDir (),
584- filename : "release-init-request .json" ,
584+ filename : "another-library-example .json" ,
585585 wantFile : "empty-library-state.json" ,
586586 },
587587 {
@@ -623,7 +623,7 @@ func TestWriteLibraryState(t *testing.T) {
623623 t .Fatalf ("Failed to read generated file: %v" , err )
624624 }
625625
626- wantBytes , readErr := os .ReadFile (filepath .Join (".." , ".. " , "testdata " , test .wantFile ))
626+ wantBytes , readErr := os .ReadFile (filepath .Join ("../.. " , "testdata " , "test-write-library-state " , test .wantFile ))
627627 if readErr != nil {
628628 t .Fatalf ("Failed to read expected state for comparison: %v" , readErr )
629629 }
@@ -684,14 +684,14 @@ func TestWriteLibrarianState(t *testing.T) {
684684 },
685685 },
686686 path : os .TempDir (),
687- filename : "release-init-request .json" ,
687+ filename : "a-librarian-example .json" ,
688688 wantFile : "write-librarian-state-example.json" ,
689689 },
690690 {
691691 name : "empty librarian state" ,
692692 state : & config.LibrarianState {},
693693 path : os .TempDir (),
694- filename : "release-init-request .json" ,
694+ filename : "another-librarian-example .json" ,
695695 wantFile : "empty-librarian-state.json" ,
696696 },
697697 {
@@ -732,7 +732,7 @@ func TestWriteLibrarianState(t *testing.T) {
732732 t .Fatalf ("Failed to read generated file: %v" , err )
733733 }
734734
735- wantBytes , readErr := os .ReadFile (filepath .Join (".." , ".. " , "testdata " , test .wantFile ))
735+ wantBytes , readErr := os .ReadFile (filepath .Join ("../.. " , "testdata " , "test-write-librarian-state " , test .wantFile ))
736736 if readErr != nil {
737737 t .Fatalf ("Failed to read expected state for comparison: %v" , readErr )
738738 }
0 commit comments