@@ -239,26 +239,6 @@ defmodule Guard.FrontRepo.ServiceAccountTest do
239
239
refute Map . has_key? ( changeset . changes , :id )
240
240
assert changeset . changes . description == "Updated description"
241
241
end
242
-
243
- test "updates timestamps on update" do
244
- user = create_test_user ( )
245
- service_account = create_test_service_account ( user )
246
- original_created_at = service_account . created_at
247
-
248
- # Wait a moment to ensure timestamp difference
249
- :timer . sleep ( 10 )
250
-
251
- attrs = % {
252
- description: "Updated description"
253
- }
254
-
255
- changeset = ServiceAccount . update_changeset ( service_account , attrs )
256
- { :ok , updated_service_account } = FrontRepo . update ( changeset )
257
-
258
- assert updated_service_account . created_at == original_created_at
259
- assert updated_service_account . updated_at != original_created_at
260
- assert updated_service_account . updated_at > original_created_at
261
- end
262
242
end
263
243
264
244
describe "schema associations" do
@@ -293,8 +273,6 @@ defmodule Guard.FrontRepo.ServiceAccountTest do
293
273
assert is_binary ( service_account . id )
294
274
assert is_binary ( service_account . user_id )
295
275
assert is_binary ( service_account . description ) or is_nil ( service_account . description )
296
- assert % DateTime { } = service_account . created_at
297
- assert % DateTime { } = service_account . updated_at
298
276
end
299
277
300
278
test "id is primary key" do
0 commit comments