Skip to content

Commit 4a6fcc3

Browse files
committed
fixed async/await test case fallout from eslint changes
Signed-off-by: Jeromy Cannon <[email protected]>
1 parent 820f7cb commit 4a6fcc3

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Diff for: src/commands/cluster.mjs

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ export class ClusterCommand extends BaseCommand {
3939

4040
/**
4141
* Get cluster-info for the given cluster name
42-
* @returns {Promise<boolean>}
42+
* @returns {boolean}
4343
*/
4444
getClusterInfo () {
4545
try {

Diff for: test/e2e/commands/cluster.test.mjs

+2-2
Original file line numberDiff line numberDiff line change
@@ -116,9 +116,9 @@ describe('ClusterCommand', () => {
116116
}
117117
}, 60000)
118118

119-
it('function getClusterInfo should return true', async () => {
119+
it('function getClusterInfo should return true', () => {
120120
try {
121-
await expect(clusterCmd.getClusterInfo()).resolves.toBeTruthy()
121+
expect(clusterCmd.getClusterInfo()).toBeTruthy()
122122
} catch (e) {
123123
expect(e).toBeNull()
124124
}

0 commit comments

Comments
 (0)