mirror of
https://github.com/ProtonMail/go-proton-api.git
synced 2025-12-23 23:57:50 -05:00
chore(BRIDGE-252): bump go to 1.24.2
This commit is contained in:
committed by
Atanas Janeshliev
parent
92de6e7c85
commit
3018ed03b5
13
.github/workflows/check.yml
vendored
13
.github/workflows/check.yml
vendored
@@ -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
4
go.mod
@@ -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
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user