chore(BRIDGE-252): bump go to 1.24.2

This commit is contained in:
ElectroNafta
2025-04-17 10:51:20 +02:00
committed by Atanas Janeshliev
parent 92de6e7c85
commit 3018ed03b5
3 changed files with 14 additions and 10 deletions

View File

@@ -8,16 +8,16 @@ jobs:
steps:
- name: Get sources
uses: actions/checkout@v4
- name: Set up Go 1.23.3
- name: Set up Go 1.24.2
uses: actions/setup-go@v5
with:
go-version: '1.23.3'
go-version: "1.24.2"
- name: Run golangci-lint
uses: golangci/golangci-lint-action@v6
uses: golangci/golangci-lint-action@v6.5.2
with:
version: v1.62.0
version: v1.64.8
args: --timeout=180s
skip-cache: true
@@ -30,6 +30,5 @@ jobs:
- name: Run govulncheck
uses: ./.github/actions/govulncheck
with:
go-version-input: 1.23.3
go-version-input: 1.24.2
go-package: ./...

4
go.mod
View File

@@ -1,6 +1,8 @@
module github.com/ProtonMail/go-proton-api
go 1.23
go 1.24
toolchain go1.24.2
require (
github.com/Masterminds/semver/v3 v3.2.0

View File

@@ -3,6 +3,7 @@ package proton_test
import (
"context"
"crypto/tls"
"fmt"
"net"
"net/http"
"testing"
@@ -343,7 +344,7 @@ func TestStatus_ServerDrop(t *testing.T) {
}
func TestStatus_ServerHang(t *testing.T) {
l, err := net.Listen("tcp", "127.0.0.1:0")
l, err := net.Listen("tcp", "127.0.0.1:8002")
require.NoError(t, err)
// Create a listener that will hang on reads/writes.
@@ -385,7 +386,7 @@ func TestStatus_ServerHang(t *testing.T) {
// Drop all existing connections and hang on writing to new connections.
hangListener.DropAll()
hangListener.SetCanWrite(false)
fmt.Println("Can write is false")
// This should fail because the connection will hang.
require.ErrorIs(t, getErr(c.GetUser(context.Background())), new(proton.NetError))
@@ -398,6 +399,8 @@ func TestStatus_ServerHang(t *testing.T) {
// This should succeed.
require.NoError(t, getErr(c.GetUser(context.Background())))
fmt.Println("status", status)
// Status should be up.
require.Equal(t, []proton.Status{proton.StatusDown, proton.StatusUp}, status)
}