提交 b3c1ca53 编写于 作者: D Derek Parker

service/test: Improve TypesCommand filter assetion

上级 c8f4cee9
......@@ -1108,10 +1108,10 @@ func TestTypesCommand(t *testing.T) {
t.Fatal("Type astruct not found in ListTypes output")
}
types, err = c.ListTypes("main.astruct")
types, err = c.ListTypes("^main.astruct$")
assertNoError(err, t, "ListTypes(\"main.astruct\")")
if len(types) <= 0 {
t.Fatal("ListTypes(\"main.astruct\") did not return anything")
if len(types) != 1 {
t.Fatalf("ListTypes(\"^main.astruct$\") did not filter properly, expected 1 got %d: %v", len(types), types)
}
})
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册