test(outputs.sql): print out what we get, bump time required (#12262)

This commit is contained in:
Joshua Powers 2022-11-18 09:38:40 -07:00 committed by GitHub
parent 75aaa8981e
commit bd91b2ced2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 5 additions and 4 deletions

View File

@ -235,8 +235,9 @@ func TestMysqlIntegration(t *testing.T) {
bytes, err := io.ReadAll(out)
require.NoError(t, err)
fmt.Println(string(bytes))
return strings.Contains(string(bytes), string(expected))
}, 5*time.Second, 500*time.Millisecond)
}, 10*time.Second, 500*time.Millisecond, tc.expectedFile)
}
}

View File

@ -1,6 +1,6 @@
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `metric_one` (
`timestamp` timestamp NOT NULL DEFAULT current_timestamp(),
`timestamp` timestamp NULL DEFAULT NULL,
`tag_one` text DEFAULT NULL,
`tag_two` text DEFAULT NULL,
`int64_one` int(11) DEFAULT NULL,

View File

@ -1,6 +1,6 @@
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `metric three` (
`timestamp` timestamp NOT NULL DEFAULT current_timestamp(),
`timestamp` timestamp NULL DEFAULT NULL,
`tag four` text DEFAULT NULL,
`string two` text DEFAULT NULL
);

View File

@ -1,6 +1,6 @@
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `metric_two` (
`timestamp` timestamp NOT NULL DEFAULT current_timestamp(),
`timestamp` timestamp NULL DEFAULT NULL,
`tag_three` text DEFAULT NULL,
`string_one` text DEFAULT NULL
);