@@ -574,14 +574,14 @@ func TestWriteLibraryState(t *testing.T) {
574
574
},
575
575
},
576
576
path : os .TempDir (),
577
- filename : "example.json" ,
577
+ filename : "a-library- example.json" ,
578
578
wantFile : "successful-marshaling-and-writing.json" ,
579
579
},
580
580
{
581
581
name : "empty library state" ,
582
582
state : & config.LibrarianState {},
583
583
path : os .TempDir (),
584
- filename : "release-init-request .json" ,
584
+ filename : "another-library-example .json" ,
585
585
wantFile : "empty-library-state.json" ,
586
586
},
587
587
{
@@ -623,7 +623,7 @@ func TestWriteLibraryState(t *testing.T) {
623
623
t .Fatalf ("Failed to read generated file: %v" , err )
624
624
}
625
625
626
- wantBytes , readErr := os .ReadFile (filepath .Join (".." , ".. " , "testdata " , test .wantFile ))
626
+ wantBytes , readErr := os .ReadFile (filepath .Join ("../.. " , "testdata " , "test-write-library-state " , test .wantFile ))
627
627
if readErr != nil {
628
628
t .Fatalf ("Failed to read expected state for comparison: %v" , readErr )
629
629
}
@@ -684,14 +684,14 @@ func TestWriteLibrarianState(t *testing.T) {
684
684
},
685
685
},
686
686
path : os .TempDir (),
687
- filename : "release-init-request .json" ,
687
+ filename : "a-librarian-example .json" ,
688
688
wantFile : "write-librarian-state-example.json" ,
689
689
},
690
690
{
691
691
name : "empty librarian state" ,
692
692
state : & config.LibrarianState {},
693
693
path : os .TempDir (),
694
- filename : "release-init-request .json" ,
694
+ filename : "another-librarian-example .json" ,
695
695
wantFile : "empty-librarian-state.json" ,
696
696
},
697
697
{
@@ -732,7 +732,7 @@ func TestWriteLibrarianState(t *testing.T) {
732
732
t .Fatalf ("Failed to read generated file: %v" , err )
733
733
}
734
734
735
- wantBytes , readErr := os .ReadFile (filepath .Join (".." , ".. " , "testdata " , test .wantFile ))
735
+ wantBytes , readErr := os .ReadFile (filepath .Join ("../.. " , "testdata " , "test-write-librarian-state " , test .wantFile ))
736
736
if readErr != nil {
737
737
t .Fatalf ("Failed to read expected state for comparison: %v" , readErr )
738
738
}
0 commit comments