Skip to content

Commit 17397dc

Browse files
dadachiclaude
andcommitted
Fix NumberTagsWebpageListViewModelTest crash when API env vars are set
The mock stored a full URL in displayShopServerPath, which Shop.displayShopServerUrl concatenates onto baseURL. When NATEMPLATE_API_* vars point baseURL at a port (http://host:3000), the resulting string becomes an invalid URL and force-unwrap crashes. Store a path instead. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent aff54c0 commit 17397dc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

NativeAppTemplateTests/UI/Shop Settings/NumberTagsWebpageListViewModelTest.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ struct NumberTagsWebpageListViewModelTest {
121121
itemTagsCount: 10,
122122
scannedItemTagsCount: 5,
123123
completedItemTagsCount: 3,
124-
displayShopServerPath: "https://api.nativeapptemplate.com/display/shops/\(id)?type=server"
124+
displayShopServerPath: "/display/shops/\(id)?type=server"
125125
)
126126
}
127127
}

0 commit comments

Comments
 (0)