Skip to content

Commit 98ff809

Browse files
crwilcoxbusunkim96
authored andcommitted
fix(test): introduce local redis for tests (#191)
1 parent 0f5727f commit 98ff809

File tree

1 file changed

+3
-4
lines changed
  • packages/google-cloud-ndb/.kokoro

1 file changed

+3
-4
lines changed

packages/google-cloud-ndb/.kokoro/build.sh

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,9 @@ export GOOGLE_APPLICATION_CREDENTIALS=${KOKORO_GFILE_DIR}/service-account.json
4040
# Setup project id.
4141
export PROJECT_ID=$(cat "${KOKORO_GFILE_DIR}/project-id.json")
4242

43-
# Some system tests require indexes. Use gcloud to create them.
44-
gcloud auth activate-service-account --key-file=$GOOGLE_APPLICATION_CREDENTIALS --project=$PROJECT_ID
45-
gcloud --quiet --verbosity=debug datastore indexes create tests/system/index.yaml
46-
43+
# Configure Local Redis to be used
44+
export REDIS_CACHE_URL=redis://localhost
45+
redis-server &
4746

4847
# Some system tests require indexes. Use gcloud to create them.
4948
gcloud auth activate-service-account --key-file=$GOOGLE_APPLICATION_CREDENTIALS --project=$PROJECT_ID

0 commit comments

Comments
 (0)