Commit d21b290 1 parent d6ec219 commit d21b290 Copy full SHA for d21b290
File tree 1 file changed +14
-0
lines changed
src/test/java/com/github/tadayosi/torchserve/client
1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change 1
1
package com .github .tadayosi .torchserve .client ;
2
2
3
+ import org .junit .jupiter .api .AfterEach ;
4
+ import org .junit .jupiter .api .BeforeEach ;
3
5
import org .junit .jupiter .api .Test ;
4
6
5
7
import static org .junit .jupiter .api .Assertions .assertEquals ;
6
8
import static org .junit .jupiter .api .Assertions .assertNotNull ;
7
9
8
10
class ConfigurationTest {
9
11
12
+ @ AfterEach
13
+ void cleanSystemProperties () {
14
+ System .clearProperty ("tsc4j.inference.key" );
15
+ System .clearProperty ("tsc4j.inference.address" );
16
+ System .clearProperty ("tsc4j.inference.port" );
17
+ System .clearProperty ("tsc4j.management.key" );
18
+ System .clearProperty ("tsc4j.management.address" );
19
+ System .clearProperty ("tsc4j.management.port" );
20
+ System .clearProperty ("tsc4j.metrics.address" );
21
+ System .clearProperty ("tsc4j.metrics.port" );
22
+ }
23
+
10
24
@ Test
11
25
void testLoad () {
12
26
var config = Configuration .load ();
You can’t perform that action at this time.
0 commit comments