t.Fatal(fmt.Sprintf("Err on received event tx.Name: Got %s, expected %s",tx.Name,name))
}
iftx.Data!=data{
t.Fatal(fmt.Sprintf("Err on received event tx.Data: Got %s, expected %s",tx.Data,data))
}
returnnil
})
mempoolCount=0
entry:=getNameRegEntry(t,typ,name)
ifentry.Data!=data{
@ -219,6 +229,17 @@ func testNameReg(t *testing.T, typ string) {
t.Fatal(fmt.Sprintf("Err on entry.Owner: Got %s, expected %s",entry.Owner,user[0].Address))
}
unsubscribe(t,con,eid)
// for the rest we just use new block event
// since we already tested the namereg event
eid=types.EventStringNewBlock()
subscribe(t,con,eid)
deferfunc(){
unsubscribe(t,con,eid)
con.Close()
}()
// update the data as the owner, make sure still there
numDesiredBlocks=int64(2)
data="these are amongst the things I wish to bestow upon the youth of generations come: a safe supply of honey, and a better money. For what else shall they need"