Skip to content

Commit 2962340

Browse files
committed
[squash] fix test
1 parent 4d0cef8 commit 2962340

1 file changed

Lines changed: 13 additions & 7 deletions

File tree

packages/logging/test/metadata.js

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -119,13 +119,19 @@ describe('metadata', function() {
119119
describe('getGKEDescriptor', function() {
120120
var CLUSTER_NAME = 'gke-cluster-name';
121121

122-
it('should return the correct descriptor', function() {
123-
assert.deepEqual(Metadata.getGKEDescriptor(PROJECT_ID, CLUSTER_NAME), {
124-
type: 'container',
125-
labels: {
126-
cluster_name: CLUSTER_NAME,
127-
project_id: PROJECT_ID
128-
}
122+
it('should return the correct descriptor', function(done) {
123+
instanceValueOverride = CLUSTER_NAME;
124+
125+
Metadata.getGKEDescriptor(PROJECT_ID, function(err, descriptor) {
126+
assert.ifError(err);
127+
assert.deepEqual(descriptor, {
128+
type: 'container',
129+
labels: {
130+
cluster_name: CLUSTER_NAME,
131+
project_id: PROJECT_ID
132+
}
133+
});
134+
done();
129135
});
130136
});
131137
});

0 commit comments

Comments
 (0)