Skip to content

Commit

Permalink
Fix log message and test script
Browse files Browse the repository at this point in the history
  • Loading branch information
dhaavi committed Apr 19, 2021
1 parent edd0d6e commit efdc0b7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion firewall/interception/nfq/nfq.go
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ func (q *Queue) packetHandler(ctx context.Context) func(nfqueue.Attribute) int {

if attrs.Payload == nil {
// There is not payload.
log.Warningf("nfqueue: packet #%s has no payload", pkt.pktID)
log.Warningf("nfqueue: packet #%d has no payload", pkt.pktID)
return 0
}

Expand Down
5 changes: 4 additions & 1 deletion test
Original file line number Diff line number Diff line change
Expand Up @@ -176,13 +176,16 @@ echo "running tests for ${platformInfo//$'\n'/ }:"

# run vet/test on packages
for package in $packages; do
package=${package#github.com/safing/portmaster}
package=${package#/}
package=$PWD/$package
echo ""
echo $package
if [[ $testonly -eq 0 ]]; then
checkformat $package
run golint -set_exit_status -min_confidence 1.0 $package
run go vet $package
run golangci-lint run $GOPATH/src/$package
run golangci-lint run $package
fi
run go test -cover $fullTestFlags $package
done
Expand Down

0 comments on commit efdc0b7

Please sign in to comment.