Skip to content

Failing tests when building with Go 1.25 #283

@levihackerman-102

Description

@levihackerman-102

A lot of tests like TestNewTestAPI/Cookies etc. are failing when building with Go 1.25. Here's the buildlog:

buildlog_ubuntu-questing-amd64.golang-github-maxatome-go-testdeep_1.14.0-1_BUILDING.txt.gz.txt

The relevant part of the log:

=== RUN   TestNewTestAPI/Cookies
    test_api_test.go:580: Failed test
        DATA: does not contain
        	     got: ""
        	expected: Contains("Failed test 'cookies should match'")
        This is how we got here:
        	TestNewTestAPI.func4() helpers/tdhttp/test_api_test.go:580
    test_api_test.go:582: Failed test
        DATA: does not contain
        	     got: ""
        	expected: Contains("Response.Cookie: comparing slices, from index #1")
        This is how we got here:
        	TestNewTestAPI.func4() helpers/tdhttp/test_api_test.go:582
    test_api_test.go:637: Failed test
        DATA: does not contain
        	     got: ""
        	expected: Contains("Failed test 'cookies should match'")
        This is how we got here:
        	TestNewTestAPI.func4() helpers/tdhttp/test_api_test.go:637
    test_api_test.go:649: Failed test
        DATA: does not contain
        	     got: ""
        	expected: Contains("Failed test 'my test: cookies should match'")
        This is how we got here:
        	TestNewTestAPI.func4() helpers/tdhttp/test_api_test.go:649
    test_api_test.go:651: Failed test
        DATA: does not contain
        	     got: ""
        	expected: Contains("Response.Cookie: bad length")
        This is how we got here:
        	TestNewTestAPI.func4() helpers/tdhttp/test_api_test.go:651
    test_api_test.go:652: Failed test
        DATA: does not contain
        	     got: ""
        	expected: Contains(`Received response:
        	          `)
        [under operator Contains at test_api_test.go:652]
        This is how we got here:
        	TestNewTestAPI.func4() helpers/tdhttp/test_api_test.go:652
    test_api_test.go:660: Failed test
        DATA: does not contain
        	     got: ""
        	expected: Contains(`Failed test 'my test: request is sent'
        	          `)
        This is how we got here:
        	TestNewTestAPI.func4() helpers/tdhttp/test_api_test.go:660
    test_api_test.go:661: Failed test
        DATA: does not contain
        	     got: ""
        	expected: Contains(`Request not sent!
        	          `)
        This is how we got here:
        	TestNewTestAPI.func4() helpers/tdhttp/test_api_test.go:661
    test_api_test.go:662: Failed test
        DATA: does not contain
        	     got: ""
        	expected: Contains(`A request must be sent before testing status, header, body or full response
        	          `)
        This is how we got here:
        	TestNewTestAPI.func4() helpers/tdhttp/test_api_test.go:662
=== RUN   TestNewTestAPI/Trailer
    test_api_test.go:703: Failed test
        DATA: does not contain
        	     got: ""
        	expected: Contains("Failed test 'my test: trailer should match'")
        This is how we got here:
        	TestNewTestAPI.func5() helpers/tdhttp/test_api_test.go:703
    test_api_test.go:705: Failed test
        DATA: does not contain
        	     got: ""
        	expected: Contains(`Received response:
        	          `)
        [under operator Contains at test_api_test.go:705]
        This is how we got here:
        	TestNewTestAPI.func5() helpers/tdhttp/test_api_test.go:705
    test_api_test.go:717: Failed test
        DATA: does not contain
        	     got: ""
        	expected: Contains("Failed test 'my test: trailer should match'")
        This is how we got here:
        	TestNewTestAPI.func5() helpers/tdhttp/test_api_test.go:717
    test_api_test.go:720: Failed test
        DATA: values differ
        	     got: -1
        	expected: ≥ 0
        [under operator Gte at test_api_test.go:720]
        This is how we got here:
        	TestNewTestAPI.func5() helpers/tdhttp/test_api_test.go:720
    test_api_test.go:732: Failed test
        DATA: does not contain
        	     got: ""
        	expected: Contains(`Failed test 'my test: request is sent'
        	          `)
        This is how we got here:
        	TestNewTestAPI.func5() helpers/tdhttp/test_api_test.go:732
...

It would be helpful if you could give some hints to fix these tests

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions