Skip to content

Commit

Permalink
test(drivers/mssql): add unit testing cases of transaction (#3818)
Browse files Browse the repository at this point in the history
  • Loading branch information
oldme-git authored Dec 5, 2024
1 parent 7cd672d commit 77cb7fb
Show file tree
Hide file tree
Showing 3 changed files with 984 additions and 2 deletions.
1 change: 0 additions & 1 deletion contrib/drivers/mssql/mssql_z_unit_basic_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,6 @@ func Test_DB_Insert(t *testing.T) {

one, err := db.Model(table).Where("id", 3).One()
t.AssertNil(err)
fmt.Println(one)
t.Assert(one["ID"].Int(), 3)
t.Assert(one["PASSPORT"].String(), "user_3")
t.Assert(one["PASSWORD"].String(), "25d55ad283aa400af464c76d713c07ad")
Expand Down
2 changes: 1 addition & 1 deletion contrib/drivers/mssql/mssql_z_unit_init_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ func createInitTable(table ...string) (name string) {
"passport": fmt.Sprintf(`user_%d`, i),
"password": fmt.Sprintf(`pass_%d`, i),
"nickname": fmt.Sprintf(`name_%d`, i),
"create_time": gtime.Now(),
"create_time": "2018-10-24 10:00:00",
})
}
result, err := db.Insert(context.Background(), name, array.Slice())
Expand Down
Loading

0 comments on commit 77cb7fb

Please # to comment.