Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test_migrate_predefined_labels is failing sometimes #320

Open
joshelser opened this issue Sep 15, 2023 · 0 comments
Open

test_migrate_predefined_labels is failing sometimes #320

joshelser opened this issue Sep 15, 2023 · 0 comments
Labels

Comments

@joshelser
Copy link
Contributor

    def test_migrate_predefined_labels(conn, timestamp_string):
        # step 1: clean up the labels table and predefined_labels table
        sql = "truncate table internal.labels"
        assert "successfully" in str(
            run_sql(conn, sql)
        ), "SQL output does not match expected result!"
    
        sql = "truncate table internal.predefined_labels"
        assert "successfully" in str(
            run_sql(conn, sql)
        ), "SQL output does not match expected result!"
    
        sql = "delete from internal.config where KEY = 'LABELS_INITED'"
        run_sql(conn, sql)
    
        # step 3: populate predefined_labels table
        sql = "CALL INTERNAL.POPULATE_PREDEFINED_LABELS();"
        assert run_proc(conn, sql) is None, "Stored procedure did not return NULL value!"
    
        sql = "select count(*) from internal.PREDEFINED_LABELS"
        output = row_count(conn, sql)
        assert output > 0, "SQL output " + str(output) + " does not match expected result!"
    
        # step 4: call internal.initialize_labels()
        sql = "call INTERNAL.INITIALIZE_LABELS()"
        output = str(run_sql(conn, sql))
>       assert "True" in output, "SQL output" + output + " does not match expected result!"
E       AssertionError: SQL outputFalse does not match expected result!
E       assert 'True' in 'False'
@rymurr rymurr added the testing label Sep 18, 2023
@joshelser joshelser changed the title test_migrate_predefined_labels is failing test_migrate_predefined_labels is failing sometimes Sep 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: No status
Development

No branches or pull requests

2 participants