Skip to content

Commit bdb207d

Browse files
committed
Remove env var from .mocharc.js
1 parent 7bb9649 commit bdb207d

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

.mocharc.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15-
process.env.GCLOUD_PROJECT = "test-project";
16-
1715
const config = {
1816
"enable-source-maps": true,
1917
"throw-deprecation": true,

test/metrics/spanner-metrics-exporter.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ const INSTANCE_ID = 'test_instance';
3434
const DATABASE_ID = 'test_db';
3535

3636
const auth = new GoogleAuth();
37-
37+
process.env.GCLOUD_PROJECT = PROJECT_ID;
3838
// Ensure custom exporter is valid
3939
describe('CustomExporter', () => {
4040
it('should construct an exporter', () => {

test/spanner.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -311,6 +311,7 @@ describe('Spanner with mock server', () => {
311311
// TODO(loite): Enable when SPANNER_EMULATOR_HOST is supported.
312312
// Set environment variable for SPANNER_EMULATOR_HOST to the mock server.
313313
// process.env.SPANNER_EMULATOR_HOST = `localhost:${port}`;
314+
process.env.GOOGLE_CLOUD_PROJECT = 'test-project';
314315
spanner = new Spanner({
315316
servicePath: 'localhost',
316317
port,

0 commit comments

Comments
 (0)