mirror of
https://github.com/coredns/coredns.git
synced 2026-10-09 03:55:21 -04:00
core: upgrade Go requirement to 1.26.0 (#8466)
* core: upgrade Go requirement to 1.26.0 As golang 1.27 has been released, this PR - Bump Go version requirement to 1.26.0 - Update Go build version to 1.27.0 This is also for solving the issue encountered in 8092 of k8s update Signed-off-by: Yong Tang <yong.tang.github@outlook.com> * Bump golang ci Signed-off-by: Yong Tang <yong.tang.github@outlook.com> * Fix Signed-off-by: Yong Tang <yong.tang.github@outlook.com> * Fix Signed-off-by: Yong Tang <yong.tang.github@outlook.com> * Fix Signed-off-by: Yong Tang <yong.tang.github@outlook.com> * Migrate faillint to forbidigo, as failint has not bee updated for more than a year Signed-off-by: Yong Tang <yong.tang.github@outlook.com> --------- Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
This commit is contained in:
@@ -36,7 +36,7 @@ func TestQuicSetup(t *testing.T) {
|
||||
max_streams 100
|
||||
}`,
|
||||
shouldErr: false,
|
||||
expectedMaxStreams: pint(100),
|
||||
expectedMaxStreams: new(100),
|
||||
expectedWorkerPoolSize: nil,
|
||||
},
|
||||
{
|
||||
@@ -45,7 +45,7 @@ func TestQuicSetup(t *testing.T) {
|
||||
}`,
|
||||
shouldErr: false,
|
||||
expectedMaxStreams: nil,
|
||||
expectedWorkerPoolSize: pint(1000),
|
||||
expectedWorkerPoolSize: new(1000),
|
||||
},
|
||||
{
|
||||
input: `quic {
|
||||
@@ -53,8 +53,8 @@ func TestQuicSetup(t *testing.T) {
|
||||
worker_pool_size 1000
|
||||
}`,
|
||||
shouldErr: false,
|
||||
expectedMaxStreams: pint(100),
|
||||
expectedWorkerPoolSize: pint(1000),
|
||||
expectedMaxStreams: new(100),
|
||||
expectedWorkerPoolSize: new(1000),
|
||||
},
|
||||
{
|
||||
input: `quic {
|
||||
@@ -133,7 +133,7 @@ func TestQuicSetup(t *testing.T) {
|
||||
}`,
|
||||
shouldErr: true,
|
||||
expectedErrContent: "already defined",
|
||||
expectedMaxStreams: pint(100),
|
||||
expectedMaxStreams: new(100),
|
||||
},
|
||||
{
|
||||
input: `quic {
|
||||
@@ -142,7 +142,7 @@ func TestQuicSetup(t *testing.T) {
|
||||
}`,
|
||||
shouldErr: true,
|
||||
expectedErrContent: "already defined",
|
||||
expectedWorkerPoolSize: pint(1000),
|
||||
expectedWorkerPoolSize: new(1000),
|
||||
},
|
||||
{
|
||||
input: `quic {
|
||||
@@ -239,6 +239,4 @@ func formatNilableInt(v *int) string {
|
||||
return fmt.Sprintf("%d", *v)
|
||||
}
|
||||
|
||||
func pint(i int) *int {
|
||||
return &i
|
||||
}
|
||||
//go:fix inline
|
||||
|
||||
Reference in New Issue
Block a user