Skip to content

Commit

Permalink
Cleanup test
Browse files Browse the repository at this point in the history
Signed-off-by: Tim Vaillancourt <[email protected]>
  • Loading branch information
timvaillancourt committed Dec 17, 2023
1 parent 7d99b4e commit b9232b2
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions go/sql/hints_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,13 @@ import (
)

func TestOptimizerHintsString(t *testing.T) {
hints := OptimizerHints{
ResourceGroup: "gh-ost",
MaxExecutionTime: 1000,
hints := OptimizerHints{}
{
test.S(t).ExpectEquals(hints.String(), ``)
}
{
hints.ResourceGroup = "gh-ost"
hints.MaxExecutionTime = 1000
test.S(t).ExpectEquals(hints.String(), `/*+ RESOURCE_GROUP(gh-ost) MAX_EXECUTION_TIME(1000) */`)
}
test.S(t).ExpectEquals(hints.String(), `/*+ RESOURCE_GROUP(gh-ost) MAX_EXECUTION_TIME(1000) */`)
}

0 comments on commit b9232b2

Please sign in to comment.