Skip to content

Commit

Permalink
fix vet warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
gfr10598 committed Dec 9, 2019
1 parent faa5d38 commit 9b643c2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions saver/tcp_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ func TestSaverDryRun(t *testing.T) {
tstamp := time.Date(2000, 1, 2, 3, 4, 5, 6, time.UTC)

// Send a UUID but never send any packets.
s.UUIDchan <- saver.UUIDEvent{"testUUID", tstamp}
s.UUIDchan <- saver.UUIDEvent{UUID: "testUUID", Timestamp: tstamp}
ctx, cancel := context.WithTimeout(context.Background(), 1*time.Second)
defer cancel()

Expand Down Expand Up @@ -301,7 +301,7 @@ func TestSaverVariousErrors(t *testing.T) {
ps := gopacket.NewPacketSource(h, h.LinkType())

if len(tt.uuid) > 0 {
s.UUIDchan <- saver.UUIDEvent{"test/UUID", time.Now()}
s.UUIDchan <- saver.UUIDEvent{UUID: "test/UUID", Timestamp: time.Now()}
}
packets := 0
for p := range ps.Packets() {
Expand Down Expand Up @@ -344,7 +344,7 @@ func TestSaverWithRealv4Data(t *testing.T) {
s := saver.StartNew(ctx, anonymize.New(anonymize.Netblock), dir, 5*time.Second, 10*time.Second, "TestSaverWithRealv4Data")

tstamp := time.Date(2000, 1, 2, 3, 4, 5, 6, time.UTC)
s.UUIDchan <- saver.UUIDEvent{"testUUID", tstamp}
s.UUIDchan <- saver.UUIDEvent{UUID: "testUUID", Timestamp: tstamp}

go func() {
// Get packets from a wireshark-produced pcap file.
Expand Down Expand Up @@ -421,7 +421,7 @@ func TestSaverWithRealv6Data(t *testing.T) {
s := saver.StartNew(ctx, anonymize.New(anonymize.Netblock), dir, 5*time.Second, 10*time.Second, "TestSaverWithRealv6Data")

tstamp := time.Date(2000, 1, 2, 3, 4, 5, 6, time.UTC)
s.UUIDchan <- saver.UUIDEvent{"testUUID", tstamp}
s.UUIDchan <- saver.UUIDEvent{UUID: "testUUID", Timestamp: tstamp}

go func() {
// Get packets from a wireshark-produced pcap file.
Expand Down

0 comments on commit 9b643c2

Please sign in to comment.