Skip to content
This repository was archived by the owner on May 14, 2026. It is now read-only.

test: fix insert test - #62

Merged
larkee merged 6 commits into
mainfrom
autoincrement_on_insert
May 12, 2021
Merged

test: fix insert test#62
larkee merged 6 commits into
mainfrom
autoincrement_on_insert

Conversation

@HemangChothani

Copy link
Copy Markdown
Contributor

No description provided.

@google-clagoogle-claBot added the cla: yes This human has signed the Contributor License Agreement. label Apr 27, 2021
Comment threadtest/test_suite.py Outdated

@pytest.mark.skip("Spanner doesn't support auto increment")
def test_autoclose_on_insert(self):
pass

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This test is flaky, it sometime passes. That means it can be fixed instead of skipping.

Безымянный

Copy link
Copy Markdown
ContributorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have tried multiple times, but it failed every time, the test is related to auto increment which spanner doesn't support. To pass this need to fill id manually which break the meaning of test.

Copy link
Copy Markdown
ContributorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think its flaky as in create table sql define NOT NULL to id column. CREATE TABLE autoinc_pk (id INT64 NOT NULL, data STRING(50)\n) PRIMARY KEY (id). Hence override the test and also enable and override the other related advance test.

@HemangChothaniHemangChothani changed the title test: skip autoincrement testtest: fix and enable insert testApr 28, 2021
@HemangChothaniHemangChothani changed the title test: fix and enable insert testtest: fix insert testApr 28, 2021
@larkee
larkee merged commit aa67b08 into mainMay 12, 2021
@IlyaFaer
IlyaFaer deleted the autoincrement_on_insert branch May 12, 2021 09:50
Sign up for freeto subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

cla: yesThis human has signed the Contributor License Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

@HemangChothani@AVaksman@IlyaFaer@larkee