回答編集履歴

2

再修正

2019/11/05 06:24

投稿

MasakiHori
MasakiHori

スコア3384

test CHANGED
@@ -82,7 +82,7 @@
82
82
 
83
83
 
84
84
 
85
- let exp= expectation(description: "Hoge")
85
+ let exp = expectation(description: "Hoge")
86
86
 
87
87
 
88
88
 

1

修正

2019/11/05 06:24

投稿

MasakiHori
MasakiHori

スコア3384

test CHANGED
@@ -82,19 +82,19 @@
82
82
 
83
83
 
84
84
 
85
- let expectation = expectation(description: "Hoge")
85
+ let exp= expectation(description: "Hoge")
86
86
 
87
87
 
88
88
 
89
89
  vc.HttpRequest(sentence: "Word") { _ in
90
90
 
91
- expectation.fulfill()
91
+ exp.fulfill()
92
92
 
93
93
  }
94
94
 
95
95
 
96
96
 
97
- wait(for: [expectation], timeout: 10.0)
97
+ wait(for: [exp], timeout: 10.0)
98
98
 
99
99
  }
100
100