Skip to content
This repository was archived by the owner on Nov 28, 2022. It is now read-only.

Commit 31b34b4

Browse files
ssh24Rajiv Nathan
authored and
Rajiv Nathan
committed
Fix K8 condition on workspace test after hook
Signed-off-by: ssh24 <[email protected]>
1 parent 8d123b3 commit 31b34b4

File tree

1 file changed

+7
-5
lines changed
  • src/pfe/file-watcher/server/test/functional-test/suites/generic/tests

1 file changed

+7
-5
lines changed

src/pfe/file-watcher/server/test/functional-test/suites/generic/tests/workspace.ts

+7-5
Original file line numberDiff line numberDiff line change
@@ -61,11 +61,13 @@ export default class WorkspaceTest {
6161
expect(info.statusCode).to.equal(200);
6262
}
6363
});
64-
after("set and test image push registry for project tests", async function(): Promise<void> {
65-
this.timeout(timeoutConfigs.testImagePushRegistryTimeout);
66-
await self.setImagePushRegistry();
67-
await self.testImagePushRegistry();
68-
});
64+
if (process.env.IN_K8) {
65+
after("set and test image push registry for project tests", async function(): Promise<void> {
66+
this.timeout(timeoutConfigs.testImagePushRegistryTimeout);
67+
await self.setImagePushRegistry();
68+
await self.testImagePushRegistry();
69+
});
70+
}
6971

7072
this.runReadWorkspaceSettings(socket, settingsPath, settingsContent, backupSettingsPath);
7173
this.runImagePushRegistryStatus(socket);

0 commit comments

Comments
 (0)