fix: Manually format external URL (#1168)

path.Join escaped the double slash!
This commit is contained in:
Kyle Carberry
2022-04-25 17:22:31 -05:00
committed by GitHub
parent 159024a196
commit 947e8f9d2e
2 changed files with 36 additions and 19 deletions

View File

@ -501,6 +501,7 @@ func TestProvisionerd(t *testing.T) {
t.Run("ShutdownFromJob", func(t *testing.T) {
t.Parallel()
var completed sync.Once
var updated sync.Once
updateChan := make(chan struct{})
completeChan := make(chan struct{})
@ -532,7 +533,9 @@ func TestProvisionerd(t *testing.T) {
}, nil
},
failJob: func(ctx context.Context, job *proto.FailedJob) (*proto.Empty, error) {
close(completeChan)
completed.Do(func() {
close(completeChan)
})
return &proto.Empty{}, nil
},
}), nil