Skip to content

Commit 8d614c6

Browse files
committed
rename testClusterConnection to testContextConnection
Signed-off-by: Jeromy Cannon <[email protected]>
1 parent 28a4a9f commit 8d614c6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/unit/commands/cluster.test.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -546,7 +546,7 @@ describe('ClusterCommand unit tests', () => {
546546
expect(contextPromptStub).not.called;
547547
expect(command.getK8().setCurrentContext).to.have.been.calledWith('context-2');
548548
expect(command.getK8().testContextConnection).calledOnce;
549-
expect(command.getK8().testContextConnection).calledWith('context-2', 'cluster-2');
549+
expect(command.getK8().testContextConnection).calledWith('context-2');
550550
});
551551

552552
it('should prompt for context when reading unknown cluster', async () => {
@@ -565,7 +565,7 @@ describe('ClusterCommand unit tests', () => {
565565
expect(contextPromptStub).calledOnce;
566566
expect(command.getK8().setCurrentContext).to.have.been.calledWith('prompted-context');
567567
expect(command.getK8().testContextConnection).calledOnce;
568-
expect(command.getK8().testContextConnection).calledWith('prompted-context', 'cluster-4');
568+
expect(command.getK8().testContextConnection).calledWith('prompted-context');
569569
});
570570

571571
it('should throw error for invalid prompted context', async () => {
@@ -587,7 +587,7 @@ describe('ClusterCommand unit tests', () => {
587587
expect(e.message).to.eq(ErrorMessages.INVALID_CONTEXT_FOR_CLUSTER_DETAILED('prompted-context', 'cluster-4'));
588588
expect(contextPromptStub).calledOnce;
589589
expect(command.getK8().testContextConnection).calledOnce;
590-
expect(command.getK8().testContextConnection).calledWith('prompted-context', 'cluster-4');
590+
expect(command.getK8().testContextConnection).calledWith('prompted-context');
591591
}
592592
});
593593

@@ -616,7 +616,7 @@ describe('ClusterCommand unit tests', () => {
616616
expect(e.message).to.eq(ErrorMessages.REMOTE_CONFIGS_DO_NOT_MATCH('cluster-3', 'cluster-4'));
617617
expect(contextPromptStub).calledOnce;
618618
expect(command.getK8().testContextConnection).calledOnce;
619-
expect(command.getK8().testContextConnection).calledWith('prompted-context', 'cluster-4');
619+
expect(command.getK8().testContextConnection).calledWith('prompted-context');
620620
}
621621
});
622622
});

0 commit comments

Comments
 (0)