File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 1
1
package buildinfo
2
2
3
3
import (
4
- "path "
4
+ "fmt "
5
5
"runtime/debug"
6
6
"sync"
7
7
"time"
@@ -43,7 +43,7 @@ func ExternalURL() string {
43
43
if ! valid {
44
44
return repo
45
45
}
46
- return path . Join ( repo , " commit" , revision )
46
+ return fmt . Sprintf ( "%s/ commit/%s" , repo , revision )
47
47
}
48
48
49
49
// Time returns when the Git revision was published.
Original file line number Diff line number Diff line change @@ -501,6 +501,7 @@ func TestProvisionerd(t *testing.T) {
501
501
502
502
t .Run ("ShutdownFromJob" , func (t * testing.T ) {
503
503
t .Parallel ()
504
+ var completed sync.Once
504
505
var updated sync.Once
505
506
updateChan := make (chan struct {})
506
507
completeChan := make (chan struct {})
@@ -532,7 +533,9 @@ func TestProvisionerd(t *testing.T) {
532
533
}, nil
533
534
},
534
535
failJob : func (ctx context.Context , job * proto.FailedJob ) (* proto.Empty , error ) {
535
- close (completeChan )
536
+ completed .Do (func () {
537
+ close (completeChan )
538
+ })
536
539
return & proto.Empty {}, nil
537
540
},
538
541
}), nil
You can’t perform that action at this time.
0 commit comments