Fix USING TIMEOUT time generation (#299)

Scylla does not support fractions.
We need to make sure that time is formatted the following way: XmYsZms
This commit is contained in:
Dmitry Kropachev
2025-01-27 11:22:34 -04:00
committed by GitHub
parent ab73391f35
commit 2f79f86b7c
4 changed files with 93 additions and 1 deletions

View File

@@ -57,6 +57,11 @@ func TestUsing(t *testing.T) {
B: new(using).Timeout(time.Second),
S: "USING TIMEOUT 1s ",
},
// Timeout faction
{
B: new(using).Timeout(time.Second + 100*time.Millisecond),
S: "USING TIMEOUT 1s100ms ",
},
// TimeoutNamed
{
B: new(using).TimeoutNamed("to"),