File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed
extension/apple/ExecuTorch/__tests__ Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -30,8 +30,7 @@ class ModuleTest: XCTestCase {
3030 }
3131
3232 func testLoadMethod( ) {
33- let bundle = Bundle ( for: type ( of: self ) )
34- guard let modelPath = bundle. path ( forResource: " add " , ofType: " pte " ) else {
33+ guard let modelPath = resourceBundle. path ( forResource: " add " , ofType: " pte " ) else {
3534 XCTFail ( " Couldn't find the model file " )
3635 return
3736 }
@@ -41,8 +40,7 @@ class ModuleTest: XCTestCase {
4140 }
4241
4342 func testMethodNames( ) {
44- let bundle = Bundle ( for: type ( of: self ) )
45- guard let modelPath = bundle. path ( forResource: " add " , ofType: " pte " ) else {
43+ guard let modelPath = resourceBundle. path ( forResource: " add " , ofType: " pte " ) else {
4644 XCTFail ( " Couldn't find the model file " )
4745 return
4846 }
@@ -53,8 +51,7 @@ class ModuleTest: XCTestCase {
5351 }
5452
5553 func testExecute( ) {
56- let bundle = Bundle ( for: type ( of: self ) )
57- guard let modelPath = bundle. path ( forResource: " add " , ofType: " pte " ) else {
54+ guard let modelPath = resourceBundle. path ( forResource: " add " , ofType: " pte " ) else {
5855 XCTFail ( " Couldn't find the model file " )
5956 return
6057 }
You can’t perform that action at this time.
0 commit comments