Explorar o código

time.Now() sucks on Windows

Vadim Markovtsev %!s(int64=6) %!d(string=hai) anos
pai
achega
345fc8ae80
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      internal/core/pipeline_test.go

+ 1 - 1
internal/core/pipeline_test.go

@@ -226,7 +226,7 @@ func TestPipelineRun(t *testing.T) {
 	assert.True(t, common.RunTime.Nanoseconds()/1e6 < 100)
 	assert.Len(t, common.RunTimePerItem, 1)
 	for key, val := range common.RunTimePerItem {
-		assert.True(t, val > 0, key)
+		assert.True(t, val >= 0, key)
 	}
 	assert.True(t, item.DepsConsumed)
 	assert.True(t, item.CommitMatches)