gofmt and review feedback

Kubernetes-commit: 2180b441dd748bcaf9c1c8a28d20f6565e14f189
This commit is contained in:
DerekFrank
2025-08-18 09:52:15 -07:00
committed by Kubernetes Publisher
parent 706156ceaf
commit 048fbed845

View File

@@ -278,6 +278,8 @@ func TestUpdateWithNilLabelsOnLease(t *testing.T) {
t.Fatalf("Failed to get lease: %v", err) t.Fatalf("Failed to get lease: %v", err)
} }
leaseLock.lease.Labels = nil
leaseLock.Labels = map[string]string{"custom-key": "custom-val"} leaseLock.Labels = map[string]string{"custom-key": "custom-val"}
// Update should succeed even with nil Labels on the lease itself // Update should succeed even with nil Labels on the lease itself
@@ -286,7 +288,6 @@ func TestUpdateWithNilLabelsOnLease(t *testing.T) {
} }
} }
func TestUpdateWithNilLabelsOnLeaseLock(t *testing.T) { func TestUpdateWithNilLabelsOnLeaseLock(t *testing.T) {
setup() setup()
@@ -299,6 +300,8 @@ func TestUpdateWithNilLabelsOnLeaseLock(t *testing.T) {
t.Fatalf("Failed to get lease: %v", err) t.Fatalf("Failed to get lease: %v", err)
} }
leaseLock.Labels = nil
leaseLock.lease.Labels = map[string]string{"custom-key": "custom-val"} leaseLock.lease.Labels = map[string]string{"custom-key": "custom-val"}
// Update should succeed even with nil Labels on the leaselock // Update should succeed even with nil Labels on the leaselock