Skip to content

Commit bf4a3d9

Browse files
committed
[FABCJ-214] - Java chaincode gRPC server
clean env in ChaincodeSupportClientTest manually Signed-off-by: Oleksandr Yamkovyi <[email protected]>
1 parent 8baf031 commit bf4a3d9

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

fabric-chaincode-shim/src/test/java/org/hyperledger/fabric/shim/impl/ChaincodeSupportClientTest.java

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)