Skip to content

Commit 50759f4

Browse files
committed
Failing tests
Signed-off-by: Rob Stryker <rob@oxbeef.net>
1 parent 0250e05 commit 50759f4

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

test/ui-test/advancedServerTest.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,13 @@ export function deploymentE2ETest(testServers: ServerTestType[]): void {
119119
await deployment.removeDeployment();
120120
// refresh server
121121
server = await serverProvider.getServer(testServer.serverName);
122-
expect(await server.getServerPublishState()).to.eq(PublishState.FULL_PUBLISH_REQUIRED);
122+
const serverPubState = await server.getServerPublishState();
123+
const deployment2 = await server.getDeployment(appName);
124+
const deploymentPubState = deployment2 ? deployment2.getDeploymentPublishState() : undefined;
125+
const serverFullPubRequired = serverPubState === PublishState.FULL_PUBLISH_REQUIRED;
126+
const serverPubSynchronized = serverPubState === PublishState.SYNCHRONIZED;
127+
const deploymentMissing = deploymentPubState === undefined;
128+
expect(serverFullPubRequired || (serverPubSynchronized && deploymentMissing)).to.eq(true);
123129
await driver.wait(async () => { return await serverHasDeployment(server, appName) === false; }, 12000);
124130
});
125131

test/ui-test/basicServerTest.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ export function basicServerOperationTest(testServers: ServerTestType[]): void {
6464
}
6565
expect(fs.existsSync(extractLocation)).to.be.true;
6666
try {
67-
const realPath = path.join(extractLocation, 'jboss-eap-7.4');
67+
const realPath = path.join(extractLocation, testServer.serverName);
6868
log.info(`Adding new local server at ${realPath}`);
6969
await serverProvider.createLocalServer(realPath, testServer.serverName, true);
7070
} catch (error) {

0 commit comments

Comments
 (0)