update wiki and fix lint
continuous-integration/drone/push Build is failing Details

Signed-off-by: Sam Therapy <sam@samtherapy.net>
This commit is contained in:
Sam Therapy 2022-08-06 02:19:24 +02:00
parent b14c699c4c
commit 6f3d07d02a
Signed by: sam
GPG Key ID: 4D8B07C18F31ACBD
3 changed files with 9 additions and 18 deletions

View File

@ -11,7 +11,6 @@ import (
"gotest.tools/v3/assert"
)
//nolint: paralleltest
func TestEmpty(t *testing.T) {
old := os.Args
os.Args = []string{"awl", "-4"}
@ -25,7 +24,6 @@ func TestEmpty(t *testing.T) {
os.Args = old
}
//nolint: paralleltest
func TestTLSPort(t *testing.T) {
old := os.Args
os.Args = []string{"awl", "-T"}
@ -38,7 +36,6 @@ func TestTLSPort(t *testing.T) {
os.Args = old
}
//nolint: paralleltest
func TestSubnet(t *testing.T) {
old := os.Args
os.Args = []string{"awl", "--subnet", "127.0.0.1/32"}
@ -74,7 +71,7 @@ func TestSubnet(t *testing.T) {
os.Args = old
}
func TestMBZ(t *testing.T) {
func TestMBZ(t *testing.T) { //nolint: paralleltest // Race conditions
old := os.Args
os.Args = []string{"awl", "--zflag", "G"}
@ -85,8 +82,7 @@ func TestMBZ(t *testing.T) {
os.Args = old
}
//nolint: paralleltest
func TestInvalidFlag(t *testing.T) {
func TestInvalidFlag(t *testing.T) { //nolint: paralleltest // Race conditions
old := os.Args
os.Args = []string{"awl", "--treebug"}
@ -97,8 +93,7 @@ func TestInvalidFlag(t *testing.T) {
os.Args = old
}
//nolint: paralleltest
func TestInvalidDig(t *testing.T) {
func TestInvalidDig(t *testing.T) { //nolint: paralleltest // Race conditions
old := os.Args
os.Args = []string{"awl", "+a"}
@ -109,8 +104,7 @@ func TestInvalidDig(t *testing.T) {
os.Args = old
}
//nolint: paralleltest
func TestVersion(t *testing.T) {
func TestVersion(t *testing.T) { //nolint: paralleltest // Race conditions
old := os.Args
os.Args = []string{"awl", "--version"}
@ -121,8 +115,7 @@ func TestVersion(t *testing.T) {
os.Args = old
}
//nolint: paralleltest
func TestTimeout(t *testing.T) {
func TestTimeout(t *testing.T) { //nolint: paralleltest // Race conditions
args := [][]string{
{"awl", "+timeout=0"},
{"awl", "--timeout", "0"},
@ -140,8 +133,7 @@ func TestTimeout(t *testing.T) {
}
}
//nolint: paralleltest
func TestRetries(t *testing.T) {
func TestRetries(t *testing.T) { //nolint: paralleltest // Race conditions
args := [][]string{
{"awl", "+retry=-2"},
{"awl", "+tries=-2"},

@ -1 +1 @@
Subproject commit 59537b97c27d8fd2a65563502a38092e3c758aa5
Subproject commit d25a7f13273737938d5e1e08c7332d39fffadc6b

View File

@ -1,6 +1,6 @@
// SPDX-License-Identifier: BSD-3-Clause
package main
package main //nolint: all // To not export the main
import (
"os"
@ -10,8 +10,7 @@ import (
"gotest.tools/v3/assert"
)
//nolint: paralleltest
func TestMain(t *testing.T) {
func TestMain(t *testing.T) { //nolint: paralleltest // Race conditions
old := os.Args
os.Args = []string{"awl", "+yaml", "@1.1.1.1"}