fix: adjust phone registration username flow
This commit is contained in:
@@ -1336,8 +1336,11 @@ func TestDispatchAccNew(t *testing.T) {
|
||||
if lvl := p["authlvl"].(string); lvl != auth.LevelAuth.String() {
|
||||
t.Errorf("Auth level: expected '%s', found '%s'.", auth.LevelAuth.String(), lvl)
|
||||
}
|
||||
if desc := p["desc"].(*MsgTopicDesc); desc.Public.(string) != public {
|
||||
t.Errorf("Public: expected '%s', found '%s'.", public, desc.Public.(string))
|
||||
if username := p["username"].(string); username != "alice" {
|
||||
t.Errorf("Username: expected 'alice', found '%s'.", username)
|
||||
}
|
||||
if desc := p["desc"].(*MsgTopicDesc); desc.Public.(map[string]any)["fn"] != "alice" {
|
||||
t.Errorf("Public fn: expected 'alice', found '%v'.", desc.Public)
|
||||
}
|
||||
} else {
|
||||
t.Error("Response must contain a ctrl message.")
|
||||
|
||||
Reference in New Issue
Block a user