spanner: shorten leaderboard test and make it E2E
@@ -28,7 +28,7 @@ import (
)
func TestSample(t *testing.T) {
- tc := testutil.SystemTest(t)
+ tc := testutil.EndToEndTest(t)
instance := os.Getenv("GOLANG_SAMPLES_SPANNER")
if instance == "" {
@@ -89,14 +89,6 @@ func TestSample(t *testing.T) {
assertContains(t, runCommand(t, "insertplayers", dbName, 0), "Inserted players")
assertContains(t, runCommand(t, "insertscores", dbName, 0), "Inserted scores")
assertContains(t, runCommand(t, "insertscores", dbName, 0), "Inserted scores")
- assertContains(t, runCommand(t, "insertscores", dbName, 0), "Inserted scores")
- assertContains(t, runCommand(t, "insertscores", dbName, 0), "Inserted scores")
- assertContains(t, runCommand(t, "insertscores", dbName, 0), "Inserted scores")
- assertContains(t, runCommand(t, "insertscores", dbName, 0), "Inserted scores")
- assertContains(t, runCommand(t, "insertscores", dbName, 0), "Inserted scores")
- assertContains(t, runCommand(t, "insertscores", dbName, 0), "Inserted scores")
- assertContains(t, runCommand(t, "insertscores", dbName, 0), "Inserted scores")
- assertContains(t, runCommand(t, "insertscores", dbName, 0), "Inserted scores")
assertContains(t, runCommand(t, "query", dbName, 0), "PlayerId: ")
assertContains(t, runCommand(t, "querywithtimespan", dbName, 168), "PlayerId: ")
assertContains(t, runCommand(t, "querywithtimespan", dbName, 730), "PlayerId: ")
