Skip to content

Commit 94bd429

Browse files
authored
Merge pull request diesel-rs#1952 from h-michael/fix-ci
Fix homebrew error on azure pipelines
2 parents 5acdb2a + d6c16cd commit 94bd429

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

azure-pipelines.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ jobs:
1313
SQLITE_DATABASE_URL: /tmp/test.db
1414
setup:
1515
- bash: |
16+
brew update &&
1617
brew install sqlite
1718
displayName: Install sqlite
1819
@@ -27,6 +28,7 @@ jobs:
2728
PG_EXAMPLE_DATABASE_URL: postgres://postgres@localhost/diesel_example
2829
setup:
2930
- bash: |
31+
brew update &&
3032
brew install postgres &&
3133
brew services start postgres &&
3234
sleep 3 &&
@@ -46,6 +48,7 @@ jobs:
4648
RUST_TEST_THREADS: 1
4749
setup:
4850
- bash: |
51+
brew update &&
4952
brew install mysql &&
5053
brew services start mysql &&
5154
brew services stop mysql;sleep 3;brew services start mysql &&

diesel_tests/tests/schema.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,8 +121,8 @@ impl NewPost {
121121
#[derive(Debug, Clone, Copy, Insertable)]
122122
#[table_name = "comments"]
123123
pub struct NewComment<'a>(
124-
#[column_name(post_id)] pub i32,
125-
#[column_name(text)] pub &'a str,
124+
#[column_name = "post_id"] pub i32,
125+
#[column_name = "text"] pub &'a str,
126126
);
127127

128128
#[derive(PartialEq, Eq, Debug, Clone, Insertable)]

0 commit comments

Comments
 (0)