mirror of
https://github.com/tailscale/tailscale.git
synced 2025-05-05 07:01:01 +00:00
cmd/derper: appease staticcheck
This commit is contained in:
parent
051b6ef141
commit
a399ef3dc7
@ -4,7 +4,10 @@
|
||||
|
||||
package main
|
||||
|
||||
import "testing"
|
||||
import (
|
||||
"context"
|
||||
"testing"
|
||||
)
|
||||
|
||||
func TestProdAutocertHostPolicy(t *testing.T) {
|
||||
tests := []struct {
|
||||
@ -22,7 +25,7 @@ func TestProdAutocertHostPolicy(t *testing.T) {
|
||||
{"example.net", false},
|
||||
}
|
||||
for _, tt := range tests {
|
||||
got := prodAutocertHostPolicy(nil, tt.in) == nil
|
||||
got := prodAutocertHostPolicy(context.Background(), tt.in) == nil
|
||||
if got != tt.wantOK {
|
||||
t.Errorf("f(%q) = %v; want %v", tt.in, got, tt.wantOK)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user