Skip to content

Test_snapshots assertion error on line 52: Cannot find terran scv #315

@peter-cudmore

Description

@peter-cudmore

Issue

Test_Snapshot raises assertion error on line 52 of test_snapshot.cc during the test class TestSnapshot3.

Setup

Visual Studio 2019.
Latest client (74741).
Latest master branch of s2client-api (including new protocols)

Comments

I'm attempting to fix the sc2api for the latest client.

I'm pretty sure the problem is in how the raw observation data is piped in and then used to update the unit-pool (lines 582--595 of sc2-client.cc).
For some reason, after the first two test cases have passed (where ObservationImp->unit_pool_ member is populated with a total of 5 neutral and allied units), during the update prior to calling TestSnapshop3, only one unit is put into that pool.

For reference, the observation unit test class Test_observation_interface.cc pass just fine (though there are problems transitioning between test suites, but that's for another day).

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