Do not use go 1.15 methods.
This commit is contained in:
parent
60515d92c5
commit
91aa1e87f1
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue