Skip to content

refactor: Slight refactor of the integration test - #355

Merged
zeroshade merged 3 commits into
mainfrom
fd-minor
May 20, 2026
Merged

zeroshade merged 3 commits into
mainfrom
fd-minor

Conversation

@Fokko

@Fokko Fokko commented Mar 21, 2025

Copy link
Copy Markdown
Contributor

This makes it easier to track where the tables come from.

Fokko added 2 commits March 21, 2025 19:04
This makes it easier to track where the tables come from.
@Fokko Fokko changed the title Rename namespace Slight refactor of the integration test Mar 21, 2025

tbl, err := s.cat.CreateTable(s.ctx,
catalog.ToIdentifier(TestNamespaceIdent, "test-table-2"),
tableSchemaNested, catalog.WithLocation(location))

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

why remove the WithLocation option?

@zeroshade zeroshade changed the title Slight refactor of the integration test refactor: Slight refactor of the integration test Mar 21, 2025
@zeroshade
zeroshade merged commit 4e5a072 into main May 20, 2026
@zeroshade
zeroshade deleted the fd-minor branch May 20, 2026 17:31
@laskoviymishka

Copy link
Copy Markdown
Contributor

I think this broke our tests on trunk :D

laskoviymishka added a commit to laskoviymishka/iceberg-go that referenced this pull request May 20, 2026
PR apache#355 set expectedLocation to ".../test-write-commit-table" but the table
is still created as "test-table-2", so s.Equal(expectedLocation, tbl.Location())
fails. Align the table name with the descriptive expectedLocation, which is
what the rest of the refactor was doing.
zeroshade pushed a commit that referenced this pull request May 21, 2026
PR #355 renamed the table created in TestCreateTable from "test-table"
to "test-create-table" but left the follow-up CheckTableExists and
DropTable calls pointing at the old name. CheckTableExists returns
false, s.True(exists) fails, the actual table is never dropped, and the
orphan in the namespace cascades into failures for every other suite
test via ensureNamespace.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants