Skip to content

Commit 472c067

Browse files
committed
<fix>: 改了一下curd_test文件
1 parent 3e6ab16 commit 472c067

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

tool/curd/curd_test.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,9 @@ func TestCurdError(t *testing.T) {
2323
})
2424

2525
err := curdCmd.Execute()
26-
assert.ErrorContains(t, err, "The system cannot find the file specified.")
27-
26+
if err == nil {
27+
t.Fatal("Expected an error, got nil")
28+
}
2829
})
2930

3031
t.Run("no primary key in model.go", func(t *testing.T) {

0 commit comments

Comments
 (0)