Skip to content

Commit

Permalink
Manually fix unit test errors
Browse files Browse the repository at this point in the history
  • Loading branch information
quartzmo committed Apr 22, 2020
1 parent d37a0b6 commit 890e56a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,9 @@ def stub.update_backup *args
backup.service.mocked_databases = stub
expire_time_was = backup.expire_time

_ { proc {
assert_raises Google::Cloud::Error do
backup.expire_time = (Time.now - 36000)
} }.must_raise Google::Cloud::Error
end

_(backup.expire_time).must_equal expire_time_was
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -163,8 +163,8 @@ def stub.create_backup *args

spanner.service.mocked_databases = stub

_ { proc {
assert_raises Google::Cloud::Error do
database.create_backup backup_id, Time.now - 36000
} }.must_raise Google::Cloud::Error
end
end
end

0 comments on commit 890e56a

Please sign in to comment.