Skip to content

Commit 01191c2

Browse files
committed
fix formating
Signed-off-by: Florian Lehner <[email protected]>
1 parent c48423b commit 01191c2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

q_netem.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ func marshalNetem(info *Netem) ([]byte, error) {
216216
multiError = concatError(multiError, err)
217217
options = append(options, tcOption{Interpretation: vtBytes, Type: tcaNetemSlot, Data: data})
218218
}
219-
if info.PrngSeed !=nil {
219+
if info.PrngSeed != nil {
220220
options = append(options, tcOption{Interpretation: vtUint64, Type: tcaNetemPrngSeed, Data: *info.PrngSeed})
221221
}
222222

q_netem_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ func TestNetem(t *testing.T) {
2525
"simple": {val: Netem{Ecn: uint32Ptr(123), Latency64: int64Ptr(-4242), Jitter64: int64Ptr(-1337)}},
2626
"qopt": {val: Netem{Qopt: NetemQopt{Latency: 42}, Rate64: uint64Ptr(1337)}},
2727
"random": {val: Netem{Corr: &NetemCorr{Delay: 2}, Reorder: &NetemReorder{Correlation: 13}, Corrupt: &NetemCorrupt{Correlation: 11}, Rate: &NetemRate{PacketOverhead: 1337}, Slot: &NetemSlot{MinDelay: 2, MaxDelay: 4}}},
28-
"prngseed": {val: Netem{Qopt: NetemQopt{Latency: 42}, Rate64: uint64Ptr(1337), PrngSeed: uint64Ptr(31337)}},
28+
"prngseed": {val: Netem{Qopt: NetemQopt{Latency: 42}, Rate64: uint64Ptr(1337), PrngSeed: uint64Ptr(31337)}},
2929
}
3030

3131
for name, testcase := range tests {

0 commit comments

Comments
 (0)