mirror of
https://github.com/dolthub/dolt.git
synced 2026-04-21 11:29:51 -05:00
performance/utils/sysbench_runner: fix dropped errors
This commit is contained in:
@@ -27,6 +27,7 @@ import (
|
||||
|
||||
func TestWriteReadResultsCsv(t *testing.T) {
|
||||
tmpDir, err := ioutil.TempDir("", "TestWriteResultsCsv")
|
||||
require.NoError(t, err)
|
||||
err = os.MkdirAll(tmpDir, os.ModePerm)
|
||||
require.NoError(t, err)
|
||||
|
||||
|
||||
@@ -289,6 +289,9 @@ func updateResult(result *Result, key, val string) error {
|
||||
result.SqlTotalQueriesPerSecond = p
|
||||
case ignoredErrors:
|
||||
total, perSecond, err := FromValWithParens(val)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
t, err := fromStringInt64(total)
|
||||
if err != nil {
|
||||
return err
|
||||
@@ -301,6 +304,9 @@ func updateResult(result *Result, key, val string) error {
|
||||
result.IgnoredErrorsPerSecond = p
|
||||
case reconnects:
|
||||
total, perSecond, err := FromValWithParens(val)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
t, err := fromStringInt64(total)
|
||||
if err != nil {
|
||||
return err
|
||||
|
||||
Reference in New Issue
Block a user