Skip to content

Commit 00521a5

Browse files
authored
chore(DataStore): fix non-compiling list nullability test (#1214)
1 parent 959934e commit 00521a5

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

AmplifyPlugins/DataStore/AWSDataStoreCategoryPluginIntegrationTests/DataStoreScalarTests.swift

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,14 +152,16 @@ class DataStoreScalarTests: SyncEngineIntegrationTestBase {
152152
XCTAssertNil(emptyModel)
153153
}
154154

155+
// TODO: Not sure how this was compiling and tested before, should be fixed with
156+
// https://github.com/aws-amplify/amplify-ios/pull/1145
155157
func testListContainerWithNil() throws {
156158
try startAmplifyAndWaitForSync()
157159
let container = ListStringContainer(
158160
test: "test",
159161
nullableString: nil,
160162
stringList: ["value1"],
161-
stringNullableList: nil,
162-
nullableStringList: [nil],
163+
stringNullableList: [], // TODO: test with `nil` with new codegen feature
164+
nullableStringList: ["value1"], // TODO: test with `[nil]`
163165
nullableStringNullableList: nil)
164166

165167
let updatedContainer = ListStringContainer(id: container.id,

0 commit comments

Comments
 (0)