Skip to content

Commit 06d530e

Browse files
committed
[-] fix copy-paste issue in CopyFrom(), closes #244
1 parent d07ccec commit 06d530e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pgxmock.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ func (c *pgxmock) Conn() *pgx.Conn {
327327
}
328328

329329
func (c *pgxmock) CopyFrom(ctx context.Context, tableName pgx.Identifier, columnNames []string, rowSrc pgx.CopyFromSource) (int64, error) {
330-
ex, err := findExpectationFunc(c, "BeginTx()", func(copyExp *ExpectedCopyFrom) error {
330+
ex, err := findExpectationFunc(c, "CopyFrom()", func(copyExp *ExpectedCopyFrom) error {
331331
if !reflect.DeepEqual(copyExp.expectedTableName, tableName) {
332332
return fmt.Errorf("CopyFrom: table name '%s' was not expected, expected table name is '%s'", tableName, copyExp.expectedTableName)
333333
}

0 commit comments

Comments
 (0)