@@ -66,7 +66,7 @@ func Test_ErrorWhenPortAlreadyTaken(t *testing.T) {
6666
6767func Test_ErrorWhenRemoteFetchError (t * testing.T ) {
6868 database := NewDatabase ()
69- database .cacheLocator = func () (string , bool ) {
69+ database .cacheLocator = func (string ) (string , bool ) {
7070 return "" , false
7171 }
7272 database .remoteFetchStrategy = func () error {
@@ -88,7 +88,7 @@ func Test_ErrorWhenUnableToUnArchiveFile_WrongFormat(t *testing.T) {
8888 Database ("beer" ).
8989 StartTimeout (10 * time .Second ))
9090
91- database .cacheLocator = func () (string , bool ) {
91+ database .cacheLocator = func (string ) (string , bool ) {
9292 return jarFile , true
9393 }
9494
@@ -119,7 +119,7 @@ func Test_ErrorWhenUnableToInitDatabase(t *testing.T) {
119119 RuntimePath (extractPath ).
120120 StartTimeout (10 * time .Second ))
121121
122- database .cacheLocator = func () (string , bool ) {
122+ database .cacheLocator = func (string ) (string , bool ) {
123123 return jarFile , true
124124 }
125125
@@ -222,7 +222,7 @@ func Test_ErrorWhenCannotStartPostgresProcess(t *testing.T) {
222222 database := NewDatabase (DefaultConfig ().
223223 RuntimePath (extractPath ))
224224
225- database .cacheLocator = func () (string , bool ) {
225+ database .cacheLocator = func (string ) (string , bool ) {
226226 return jarFile , true
227227 }
228228
@@ -360,7 +360,7 @@ func Test_ConcurrentStart(t *testing.T) {
360360 var wg sync.WaitGroup
361361
362362 database := NewDatabase ()
363- cacheLocation , _ := database .cacheLocator ()
363+ cacheLocation , _ := database .cacheLocator ("" )
364364 err := os .RemoveAll (cacheLocation )
365365 require .NoError (t , err )
366366
@@ -644,7 +644,7 @@ func Test_CustomBinariesLocation(t *testing.T) {
644644 }
645645
646646 // Delete cache to make sure unarchive doesn't happen again.
647- cacheLocation , _ := database .cacheLocator ()
647+ cacheLocation , _ := database .cacheLocator ("" )
648648 if err := os .RemoveAll (cacheLocation ); err != nil {
649649 panic (err )
650650 }
@@ -688,13 +688,13 @@ func Test_PrefetchedBinaries(t *testing.T) {
688688 panic (err )
689689 }
690690
691- cacheLocation , _ := database .cacheLocator ()
691+ cacheLocation , _ := database .cacheLocator ("" )
692692 if err := decompressTarXz (defaultTarReader , cacheLocation , binTempDir ); err != nil {
693693 panic (err )
694694 }
695695
696696 // Expect everything to work without cacheLocator and/or remoteFetch abilities.
697- database .cacheLocator = func () (string , bool ) {
697+ database .cacheLocator = func (string ) (string , bool ) {
698698 return "" , false
699699 }
700700 database .remoteFetchStrategy = func () error {
0 commit comments