Change remaining audits to scan (#410)

This commit is contained in:
Zachary Rice authored and GitHub committed 2020-07-24 11:30:33 -04:00
1 parent 6ca7a11d88
commit fe69a17c9c
5 files changed
+15 -15

No files matched your search

+3 -3
View File
@@ -65,7 +65,7 @@ func TestSendReceiveMeta(t *testing.T) {
m, _ := NewManager(opts, cfg)
for i := 0; i < test.iterations; i++ {
m.RecordTime(AuditTime(test.scanTime))
m.RecordTime(ScanTime(test.scanTime))
m.RecordTime(PatchTime(test.patchTime))
m.RecordTime(CloneTime(test.cloneTime))
m.RecordTime(RegexTime{
@@ -82,9 +82,9 @@ func TestSendReceiveMeta(t *testing.T) {
t.Errorf("clone time mismatch, got %d, wanted %d",
md.cloneTime, test.cloneTime*int64(test.iterations))
}
if md.AuditTime != test.scanTime*int64(test.iterations) {
if md.ScanTime != test.scanTime*int64(test.iterations) {
t.Errorf("scan time mismatch, got %d, wanted %d",
md.AuditTime, test.scanTime*int64(test.iterations))
md.ScanTime, test.scanTime*int64(test.iterations))
}
if md.patchTime != test.patchTime*int64(test.iterations) {
t.Errorf("clone time mismatch, got %d, wanted %d",