forked from remote/oauth2
google: Use bytes.Buffer for go 1.9 compatability
Update test cases to use const test data file references. Change-Id: Ic08b6de5a84db7b2ae2c649ee676c5a2c13f4227 Reviewed-on: https://go-review.googlesource.com/c/oauth2/+/306749 Reviewed-by: Cody Oss <codyoss@google.com> Trust: Cody Oss <codyoss@google.com> Trust: Tyler Bui-Palsulich <tbp@google.com> Run-TryBot: Cody Oss <codyoss@google.com> TryBot-Result: Go Bot <gobot@golang.org>
This commit is contained in:
@@ -13,8 +13,13 @@ import (
|
||||
"time"
|
||||
)
|
||||
|
||||
const (
|
||||
textBaseCredPath = "testdata/3pi_cred.txt"
|
||||
jsonBaseCredPath = "testdata/3pi_cred.json"
|
||||
)
|
||||
|
||||
var testBaseCredSource = CredentialSource{
|
||||
File: "./testdata/3pi_cred.txt",
|
||||
File: textBaseCredPath,
|
||||
Format: format{Type: fileTypeText},
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user