File tree Expand file tree Collapse file tree
fabric-chaincode-shim/src/test/java/org/hyperledger/fabric/shim/impl Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -25,11 +25,6 @@ class ChaincodeSupportClientTest {
2525 @ Rule
2626 public final EnvironmentVariables environmentVariables = new EnvironmentVariables ();
2727
28- @ After
29- public void cleanEnv () {
30- environmentVariables .clear ("CORE_CHAINCODE_ID_NAME" );
31- }
32-
3328 @ Test
3429 void testStartInvocationTaskManagerAndRequestObserverNull () throws IOException {
3530 environmentVariables .set ("CORE_CHAINCODE_ID_NAME" , "mycc" );
@@ -54,6 +49,7 @@ void testStartInvocationTaskManagerAndRequestObserverNull() throws IOException {
5449 },
5550 "StreamObserver 'requestObserver' for chat with peer can't be null"
5651 );
52+ environmentVariables .clear ("CORE_CHAINCODE_ID_NAME" );
5753 }
5854
5955 @ Test
@@ -91,5 +87,6 @@ public void onCompleted() {
9187 },
9288 "InvocationTaskManager 'itm' can't be null"
9389 );
90+ environmentVariables .clear ("CORE_CHAINCODE_ID_NAME" );
9491 }
9592}
You can’t perform that action at this time.
0 commit comments