Merge pull request #59725 from wgliang/master.vet
Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>. fix some syntax related errors **What this PR does / why we need it**: fix some syntax related errors **Special notes for your reviewer**: None ```release-note NONE ``` Kubernetes-commit: effa021db773fb95c9e8fbe5646d01784bb2f7f6
This commit is contained in:
		
						commit
						d8c5ef5d14
					
				
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							| 
						 | 
				
			
			@ -77,13 +77,13 @@ func testCache(cache cache, t *testing.T) {
 | 
			
		|||
	// when empty, record is stored
 | 
			
		||||
	cache.set("foo", record1, time.Hour)
 | 
			
		||||
	if result, ok := cache.get("foo"); !ok || result != record1 {
 | 
			
		||||
		t.Errorf("Expected %#v, true, got %#v, %v", record1, ok)
 | 
			
		||||
		t.Errorf("Expected %#v, true, got %#v, %v", record1, result, ok)
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	// newer record overrides
 | 
			
		||||
	cache.set("foo", record2, time.Hour)
 | 
			
		||||
	if result, ok := cache.get("foo"); !ok || result != record2 {
 | 
			
		||||
		t.Errorf("Expected %#v, true, got %#v, %v", record2, ok)
 | 
			
		||||
		t.Errorf("Expected %#v, true, got %#v, %v", record2, result, ok)
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	// removing the current value removes
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -848,7 +848,7 @@ func TestAuditIDHttpHeader(t *testing.T) {
 | 
			
		|||
			}
 | 
			
		||||
		} else {
 | 
			
		||||
			if resp.Header.Get("Audit-ID") != "" {
 | 
			
		||||
				t.Errorf("[%s] expected no Audit-ID http header returned, but got %p", test.desc, resp.Header.Get("Audit-ID"))
 | 
			
		||||
				t.Errorf("[%s] expected no Audit-ID http header returned, but got %s", test.desc, resp.Header.Get("Audit-ID"))
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
	}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -14,9 +14,10 @@ See the License for the specific language governing permissions and
 | 
			
		|||
limitations under the License.
 | 
			
		||||
*/
 | 
			
		||||
 | 
			
		||||
// Package envelope transforms values for storage at rest using a Envelope provider
 | 
			
		||||
 | 
			
		||||
// +build !windows
 | 
			
		||||
 | 
			
		||||
// Package envelope transforms values for storage at rest using a Envelope provider
 | 
			
		||||
package envelope
 | 
			
		||||
 | 
			
		||||
import (
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue