Skip to content

TestMTUNetworkCRUDL acceptance test is not deterministic #2592

@mandre

Description

@mandre

We compare objects returned from an Update operation, and retrieved from a Get. It seems like the updated_at field is not yet updated in the return of the Update, which could cause the comparison to fail.

See for example https://github.com/gophercloud/gophercloud/actions/runs/4414202596/jobs/7735607146#step:5:3886

     convenience.go:237: Failure in mtu_test.go, line 132:at .Network.UpdatedAt expected time.Date(2023, time.March, 14, 9, 55, 49, 0, time.UTC), but got time.Date(2023, time.March, 14, 9, 55, 50, 0, time.UTC)
    convenience.go:36: Failure in mtu_test.go, line 132: The structures were different.
    networking.go:518: Attempting to delete network: eb7f9980-d339-4883-b91c-53e9cb3fefad
    networking.go:525: Deleted network: eb7f9980-d339-4883-b91c-53e9cb3fefad
--- FAIL: TestMTUNetworkCRUDL (1.14s)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions