Skip to content

Commit a2d2b4f

Browse files
committed
fix test
1 parent d44c679 commit a2d2b4f

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

vulnfeeds/cves/versions_test.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -687,17 +687,17 @@ func TestExtractGitCommit(t *testing.T) {
687687
t.Skipf("test %q: running on Cloud Build", tc.description)
688688
}
689689
if time.Now().Before(tc.disableExpiryDate) {
690-
t.Skipf("test %q: extractGitAffectedCommit for %q (%q) has been skipped due to known outage and will be reenabled on %s.", tc.description, tc.inputLink, tc.inputCommitType, tc.disableExpiryDate)
690+
t.Skipf("test %q: extractGitAffectedCommit for %q (%v) has been skipped due to known outage and will be reenabled on %s.", tc.description, tc.inputLink, tc.inputCommitType, tc.disableExpiryDate)
691691
}
692692
if !tc.disableExpiryDate.IsZero() && time.Now().After(tc.disableExpiryDate) {
693-
t.Logf("test %q: extractGitAffectedCommit(%q, %q) has been enabled on %s.", tc.description, tc.inputLink, tc.inputCommitType, tc.disableExpiryDate)
693+
t.Logf("test %q: extractGitAffectedCommit(%q, %v) has been enabled on %s.", tc.description, tc.inputLink, tc.inputCommitType, tc.disableExpiryDate)
694694
}
695695
got, err := extractGitAffectedCommit(tc.inputLink, tc.inputCommitType, client)
696696
if err != nil && !tc.expectFailure {
697-
t.Errorf("test %q: extractGitAffectedCommit for %q (%q) errored unexpectedly: %#v", tc.description, tc.inputLink, tc.inputCommitType, err)
697+
t.Errorf("test %q: extractGitAffectedCommit for %q (%v) errored unexpectedly: %#v", tc.description, tc.inputLink, tc.inputCommitType, err)
698698
}
699699
if err == nil && tc.expectFailure {
700-
t.Errorf("test %q: extractGitAffectedCommit for %q (%q) did not error as unexpected!", tc.description, tc.inputLink, tc.inputCommitType)
700+
t.Errorf("test %q: extractGitAffectedCommit for %q (%v) did not error as unexpected!", tc.description, tc.inputLink, tc.inputCommitType)
701701
}
702702
if !reflect.DeepEqual(got, tc.expectedAffectedCommit) {
703703
t.Errorf("test %q: extractGitAffectedCommit for %q was incorrect, got: %#v, expected: %#v", tc.description, tc.inputLink, got, tc.expectedAffectedCommit)

0 commit comments

Comments
 (0)