From 4c230140516751489a69fd91c7fba29c873c665f Mon Sep 17 00:00:00 2001 From: Mickael Remond Date: Tue, 4 Jun 2019 19:01:19 +0200 Subject: [PATCH] Test clean up --- jid_test.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/jid_test.go b/jid_test.go index 589fa82..705e9f9 100644 --- a/jid_test.go +++ b/jid_test.go @@ -13,6 +13,11 @@ func TestValidJids(t *testing.T) { for i, sjid := range goodJids { if jid, err = NewJid(sjid); err != nil { t.Error("could not parse correct jid") + return + } + + if jid == nil { + t.Error("jid should not be nil") } if jid.username != "test" {