Do not use go 1.15 methods.

This commit is contained in:
Mariano Cano 2020-09-16 13:51:49 -07:00
parent 60515d92c5
commit 91aa1e87f1

View file

@ -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