fix(database/gdb): fix context canceled error in transaction due to usage of TransTimeout configuration (#4037)

This commit is contained in:
John Guo
2024-12-17 21:15:54 +08:00
committed by GitHub
parent 0c2d5cac19
commit f79aef6669
12 changed files with 327 additions and 107 deletions

View File

@ -99,14 +99,6 @@ func Test_Basic(t *testing.T) {
t.AssertNil(err)
}
})
// gudp.SendRecv
gtest.C(t, func(t *gtest.T) {
for i := 0; i < 100; i++ {
result, err := gudp.SendRecv(s.GetListenedAddress(), []byte(gconv.String(i)), -1)
t.AssertNil(err)
t.Assert(string(result), fmt.Sprintf(`> %d`, i))
}
})
}
// If the read buffer size is less than the sent package size,