Explorar o código

Do not use go 1.15 methods.

Mariano Cano %!s(int64=6) %!d(string=hai) anos
pai
achega
91aa1e87f1
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      cas/apiv1/registry_test.go

+ 1 - 1
cas/apiv1/registry_test.go

@@ -33,7 +33,7 @@ func TestRegister(t *testing.T) {
 		t.Run(tt.name, func(t *testing.T) {
 			Register(tt.args.t, tt.args.fn)
 			fmt.Println(registry)
-			fn, ok := registry.LoadAndDelete(tt.args.t.String())
+			fn, ok := registry.Load(tt.args.t.String())
 			if !ok {
 				t.Errorf("Register() failed")
 				return