fix golint issues
This commit is contained in:
@@ -67,7 +67,3 @@ func TestSignalNoWait(t *testing.T) {
|
||||
func sleep(millisecond int) {
|
||||
time.Sleep(time.Duration(millisecond) * time.Millisecond)
|
||||
}
|
||||
|
||||
func currentTimeMillis() int64 {
|
||||
return time.Now().UnixNano() / int64(time.Millisecond)
|
||||
}
|
||||
|
||||
@@ -95,7 +95,8 @@ func TestExclusiveCallDoDiffDupSuppress(t *testing.T) {
|
||||
close(broadcast)
|
||||
wg.Wait()
|
||||
|
||||
if got := atomic.LoadInt32(&calls); got != 5 { // five letters
|
||||
if got := atomic.LoadInt32(&calls); got != 5 {
|
||||
// five letters
|
||||
t.Errorf("number of calls = %d; want 5", got)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user